package com.product.magina.wechatserver.vo;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @ClassnName :com.product.magina.wechatserver.vo.TestPostModelVo
 * @Author： Magina.Hu
 * @Date： 2019/4/17
 * @Description：
 * @Version: V1.0
 * Copyright (c) 2019-2020 .All rights reserved.
 */
@Data
public class TestPostModelVo implements Serializable {

    @NotNull(message = "id不能为空 ")
    private String id;

    @NotNull(message = "num cannot be null")
    private Integer num;

    @NotEmpty(message = "name cannot be empty")
    private String name;

    @NotBlank(message = "code cannot be blank")
    private String code;
}
